<?php

class BaseController extends Controller {

    protected $user_info = [
        'uid' => 0
    ];

    public function __construct() {
        parent::__construct();
        if(Doit::getActionName()=='serverTag') {
            return true;
        }
        if (!$this->user_info = self::model('user')->checkLogin()) {
            Response::ajax(USER_NO_LOGIN, '用户未登录');
        }
    }

}
